﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace WFExtended.Twitter
{
    /// <summary>
    /// Too may request Exception
    /// <remarks>
    /// See https://dev.twitter.com/docs/rate-limiting/1.1/limits for more details
    /// </remarks>
    /// </summary>
    [Serializable]
    public class RateLimitException : ATwitterException
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="RateLimitException"/> class.
        /// </summary>
        public RateLimitException()
            : base()
        { }

        /// <summary>
        /// Initializes a new instance of the <see cref="RateLimitException"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="inner">The inner.</param>
        public RateLimitException(string message, Exception inner)
            : base(message, inner)
        {
            
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="RateLimitException"/> class.
        /// </summary>
        /// <param name="info">The object that holds the serialized object data.</param>
        /// <param name="context">The contextual information about the source or destination.</param>
        protected RateLimitException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
    }
}
